﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Content;
using MvcEngine.Core.Website;
using MvcEngine.Core;
using MvcEngine.Core.Localization;
using MvcEngine.Mvc.Models.ViewModels;

namespace MvcEngine.Mvc.Models
{
    public class ChangePasswordViewModel : MvcEngineModel
    {
        [MvcEngineDisplayName("AccountPasswordLabel")]
        [RequiredFieldValidator("PasswordRequiredValidator")]
        [LengthValidator("MaxPasswordLengthValidator", 128)]
        [LengthValidator("MinPasswordLengthValidator", MinLength = 6, AllowEmpty = true)]
        public string Password { get; set; }

        [RequiredFieldValidator("PasswordConfirmRequiredValidator")]
        [MvcEngineDisplayName("AccountConfirmationPasswordLabel")]
        public string ConfirmationPassword { get; set; }

        public string Key { get; set; }
    }
}
